//
//  GHBasicViewController.m
//  12-guhu_weibo
//
//  Created by GHapple on 15-2-3.
//  Copyright (c) 2015年 itcast. All rights reserved.
//

#import "GHBasicViewController.h"
#import "GHQauthController.h"
#import "GHNavigationController.h"

@interface GHBasicViewController ()<GHDefalutCentViewDelegate>

@end

@implementation GHBasicViewController

- (void)loadView{

    GHDefaultCentView *defaultView = [GHDefaultCentView defaultCentView];
    self.view = defaultView;
    self.defaultView = defaultView;
    defaultView.delegate =self;

}




- (void)viewDidLoad {
    [super viewDidLoad];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark  代理的方法
- (void)defaultCenterView:(GHDefaultCentView *)defaultCenterView didClickLogin:(UIButton *)loginBtn{
//    GHLog(@"点击了登录");
    GHNavigationController *nav = [[GHNavigationController alloc]init];
    GHQauthController *qauth = [[GHQauthController alloc]init];
    
    [nav addChildViewController:qauth];
    [self presentViewController:nav animated:YES completion:nil];
    


}
- (void)defaultCenterView:(GHDefaultCentView *)defaultCenterView didClickRegister:(UIButton *)registerBtn{

     GHLog(@"点击了注册");
}

@end
